package com.orangelife.service.propFeePollfee.impl;

import java.util.List;

import com.orangelife.exception.AppBizException;
import com.orangelife.service.propFeePollfee.IPropFeePollfeeService;
import com.orangelife.service.propFeePollfee.model.PropFeePollfeeDto;

public class HandlePollFeeThread extends Thread implements Runnable {

	private String threadName;
	private List<PropFeePollfeeDto> data;
	private int start;
	private int end;

	private IPropFeePollfeeService propFeePollfeeService;

	public HandlePollFeeThread(String threadName, List<PropFeePollfeeDto> data,
			IPropFeePollfeeService propFeePollfeeService) {
		this.threadName = threadName;
		this.data = data;
		this.propFeePollfeeService = propFeePollfeeService;
	}

	public void run() {
		try {
			// propFeeMeterRecordService.addPropFeeMeterRecord(data);

			propFeePollfeeService.bauthaddPropFeePollfee(data);
		} catch (AppBizException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
